package top.whysu.rongcloud.po;

import org.hibernate.validator.constraints.NotBlank;
import top.whysu.rongcloud.annotation.DataDictionaryVaildAnnotation;
import top.whysu.rongcloud.constant.datadictionary.DataDictionaryFront;
import top.whysu.rongcloud.entity.BaseEntity;
import top.whysu.rongcloud.entity.validate.InsertValid;

/**
 * 融云用户表
 */
public class RongCloudUserPO extends BaseEntity {
    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String account;
    /**
     * 头像（图片完整路径）
     */
    private String avatar;
    /**
     * 性别 {@link DataDictionaryFront.Sex}
     */
    @DataDictionaryVaildAnnotation(message = "性别字典不匹配", target = DataDictionaryFront.Sex.class)
    private Integer sex;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 融云token
     */
    private String token;
    /**
     * 融云中保存的id
     */
    private String rongCloudUserId;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }


    public String getRongCloudUserId() {
        return rongCloudUserId;
    }

    public void setRongCloudUserId(String rongCloudUserId) {
        this.rongCloudUserId = rongCloudUserId;
    }

}